package com.njtoyo.taxi.admin.rest.controller.business;

import com.njtoyo.taxi.admin.service.business.CallTypeService;
import com.taxi.entity.common.RestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("business/call_type")
public class CallTypeController {

    @Autowired
    private CallTypeService callTypeService;

    @RequestMapping("/listAll")
    public RestResult listAll() {
        return RestResult.success(callTypeService.list());
    }
}
